package types

// ExecConfig是Config结构的一个子集，它保存了docker exec功能的配置。
// ExecConfig is a small subset of the Config struct that holds the configuration for the exec feature of docker.
type ExecConfig struct {
	//将运行该命令的用户
	// User that will run the command
	User string
	//容器是否处于特权模式
	// Is the container in privileged mode
	Privileged bool
	//将标准流附加到tty。
	// Attach standard streams to a tty.
	Tty bool
	//附加标准输入，实现用户交互
	// Attach the standard input,makes possible user interaction
	AttachStdin bool
	// Attach the standard error
	AttachStderr bool
	// Attach the standard output
	AttachStdout bool
	// Execute in detach mode
	Detach bool
	// Escape keys for detach
	DetachKeys string
	// Environment variables
	Env []string
	// Working directory
	WorkingDir string
	// Execution commands and args
	Cmd []string
}
